[NGINX] How do you hide .git project directories?

Posted by Xeoncross on Stack Overflow See other posts from Stack Overflow or by Xeoncross
Published on 2010-06-08T16:36:46Z Indexed on 2010/06/08 16:42 UTC
Read the original article Hit count: 159

Filed under:
|
|

Now that I have nginx setup I need to be able to hide my .git directories. What kind of rewrite would I need to stop prying eyes? And where in the server {} or http {} block would it go?

© Stack Overflow or respective owner

Related posts about regex

Related posts about git